package com.example.mybatis.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class Controller {
    @Value("${string.hello}")
    private String hello;

    @RequestMapping("/hello")
    public String Hello(){
        return "获取yml配置："+hello;
    }

}
